package com.loong.ems.domain.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author 龙勇-229970722
 * @date 2025-01-06 8:35
 * @description: 请假记录
 */

@Data
public class EmpLeaveRecordVo {

    @TableId(type = IdType.AUTO)
    private Long id; // 请假记录Id

    @Schema(description = "请假人Id")
    private Long userId; // 请假人Id

    @Schema(description = "创建时间")
    private Date createTime; // 创建时间

    @Schema(description = "请假开始时间")
    private Date leaveStartTime; // 请假开始时间

    @Schema(description = "请假结束时间")
    private Date leaveEndTime; // 请假结束时间

    @Schema(description = "请假事由")
    private String leaveReason; // 请假事由

    @Schema(description = "请假类型")
    private String leaveTypeCode; // 请假类型

    @Schema(description = "审批人姓名")
    private String approveUserName; // 审批人Id

    @Schema(description = "审批时间")
    private Date approveTime; // 审批时间

    @Schema(description = "审批意见")
    private String approveContent; // 审批意见

    @Schema(description = "审批状态(0-待提交 1-待审核 2-审批通过 3-驳回 4-待销假 9-销假)")
    private Integer status; // 审批状态

    @Schema(description = "销假时间")
    private Date realEndTime; // 销假时间
}
